package com.man.service;

import com.man.pojo.Book;
import com.man.pojo.User;

import java.util.List;

/**
 * @CallsName: loginService
 */
public interface LoginService {
    /*创建账号*/
    void save(String username, String email, String password);

    /*删除账号*/
    void deleteByUserImpl(User username);

    /*修改*/
    void modify(User user);

    /*查询账号*/
    User getByUser(String username);

    /*获取所有账号*/
    List<User> getAll();

    Book getBook(String name);

    List<Book> getBookAll();

    void saveBook(String book, String bookName);

    void deleteBook(String book, Integer id);

    // 修改密码
    boolean updatePwd(String newPwd, Integer id);
}
